package com.djinfo.work.service;

import com.djinfo.work.common.bean.AjaxJson;
import com.djinfo.work.entity.DicVo;
import com.djinfo.work.entity.Dictionaries;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * Created by admin on 2017/5/19.
 */
public interface DictionariesService {
    public void save(Dictionaries object);
    public void update(Dictionaries object);
    //public void delete(Dictionaries object);
    public Dictionaries getDepartmentById(String id);
    public List<Dictionaries> page(Dictionaries object, Integer pageNum, Integer pageSize);
    public List<Dictionaries> list();
    public Integer getAllRowCount(Dictionaries dictionaries);

    public List<Dictionaries> messagesTypeList(String type);

    public List<Dictionaries> messagesStatusList(String type);

    public List<DicVo> getDic(String dic);

    /**
     * 字典列表
     * @param dictionaries
     * @param pagenum
     * @param pagesize
     * @return
     */
    public AjaxJson list(Dictionaries dictionaries, Integer pagenum, Integer pagesize);

    /**
     *
     * @param dictionaries
     * @param session
     * @return
     */
    public AjaxJson saveOrUpdate(Dictionaries dictionaries,HttpSession session);

    /**
     * 删除操作
     * @param dictionaries
     * @return
     */
    public AjaxJson deleteDictionary(Dictionaries dictionaries);

}
